﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using Common;

namespace EshubaAnalyser
{
    [Serializable]
    public class HyperLink : ISerializable
    {
        public HyperLink() { }

        protected HyperLink(SerializationInfo info, StreamingContext context)
        {
            this.Text = info.TryGetValue<string>("Text");
            this.Url = info.TryGetValue<string>("Url");
        }

        public string Text { get; set; }

        public string Url { get; set; }

        public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            info.AddValue("Text", Text);
            info.AddValue("Url", Url);
        }
    }
}
